package com.company.jrlz.entity;

import com.haulmont.cuba.core.entity.StandardEntity;

import javax.persistence.*;

@Table(name = "JRLZ_DEVICE_STATUS")
@Entity(name = "jrlz_DeviceStatus")
public class DeviceStatus extends StandardEntity {
    private static final long serialVersionUID = 1736638581188774050L;

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "DEVICE_NAME_ID")
    private Device deviceName;

    @Column(name = "DEVICE_TYPE")
    private String deviceType;

    @Column(name = "LINE")
    private String line;

    @Column(name = "STATUS")
    private String status;

    @Column(name = "LAST_ALARM_TIME")
    private String lastAlarmTime;

    @Column(name = "LAST_ALARM_INFO")
    private String lastAlarmInfo;

    @Column(name = "POWER_ON_TIME")
    private String powerOnTime;

    @Column(name = "RUN_TIME")
    private String runTime;

    public void setLastAlarmTime(String lastAlarmTime) {
        this.lastAlarmTime = lastAlarmTime;
    }

    public String getLastAlarmTime() {
        return lastAlarmTime;
    }

    public void setPowerOnTime(String powerOnTime) {
        this.powerOnTime = powerOnTime;
    }

    public String getPowerOnTime() {
        return powerOnTime;
    }

    public String getRunTime() {
        return runTime;
    }

    public void setRunTime(String runTime) {
        this.runTime = runTime;
    }

    public void setLine(String line) {
        this.line = line;
    }

    public String getLine() {
        return line;
    }

    public void setDeviceType(String deviceType) {
        this.deviceType = deviceType;
    }

    public String getDeviceType() {
        return deviceType;
    }

    public String getLastAlarmInfo() {
        return lastAlarmInfo;
    }

    public void setLastAlarmInfo(String lastAlarmInfo) {
        this.lastAlarmInfo = lastAlarmInfo;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Device getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(Device deviceName) {
        this.deviceName = deviceName;
    }
}